<template>
    <div>
        <el-cascader style="width:350px"
                     :options="regionData"
                     change-on-select
                     clearable
                     :props="{label:'regionName',value:'regionId'}"
                     @change="handleAddressChange">
        </el-cascader>
    </div>
</template>

<script>
  import { getRegionList } from '@/utils/listUtil'
  export default {
    name: 'RegionSelect',
    props:{
      handleAddressChange:Function,
    },
    data(){
      return {
        regionData:[]
      }
    },
    created() {
      this.regionData = getRegionList()||[];
    },

  }
</script>

<style scoped>

</style>
